const express = require('express');
const adminController = require('../controllers/adminController');

const router = express.Router();

// 用户增删改查路由
router.get('/users', adminController.getUsers);  // 更正为正确的控制器方法名
// router.post('/users', adminController.createUser);
router.put('/users/:id', adminController.updateUser);
router.delete('/users/:id', adminController.deleteUser);

module.exports = router;
